Skip to content

Comments

Fill Memcached::__construct() parameters description#4263

Open
alexandre-daubois wants to merge 1 commit intophp:masterfrom
alexandre-daubois:memcached-params
Open

Fill Memcached::__construct() parameters description#4263
alexandre-daubois wants to merge 1 commit intophp:masterfrom
alexandre-daubois:memcached-params

Conversation

@alexandre-daubois
Copy link
Member

Fix #4025

@alexandre-daubois alexandre-daubois force-pushed the memcached-params branch 2 times, most recently from 1ae2459 to c5732d3 Compare December 10, 2024 10:30
<methodsynopsis>
<type>void</type><methodname><replaceable>callback</replaceable></methodname>
<methodparam><type>Memcached</type><parameter>memcached</parameter></methodparam>
<methodparam><type>string</type><parameter>persistent_id</parameter></methodparam>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the linked source code this should be string|null

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, I missed the if. Not a pro of PHP extensions and C, but I would say you're right 😄 Updated

<methodsynopsis>
<type>void</type><methodname><replaceable>callback</replaceable></methodname>
<methodparam><type>Memcached</type><parameter>memcached</parameter></methodparam>
<methodparam><type>string|null</type><parameter>persistent_id</parameter></methodparam>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have fun markup for this, so rather than <type>string|null</type> here use <type class="union"><type>string</type><type>null</type></type> instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Memcached::__construct() parameters

4 participants